home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / util / restools.sit / ResTools 3.20.rsrc / HTXT_7_User Defined Resources_ < prev    next >
Text File  |  1988-12-28  |  482b  |  16 lines

  1. Arbitrary resources can also be defined. They use a syntax similiar to the
  2. following example. The data of the resource requires that you define a series
  3. of data types followed by their contents. 
  4. 
  5.  userdefined resource 'MUDB' (134)
  6. {
  7.     pstring:     "this is a pascal string";
  8.     cstring:     "this is a c string";
  9.     string:    "C String without trailing null";
  10.     integer:     1;
  11.     long:         2;
  12.     byte:         3;
  13.     point:     { 23, 145};
  14.     rectangle:    {1,34,56,78};
  15. };
  16.